
function onClick(id) {
    $(id).click(function () {
        var url = $(this).attr("data-url");
        window.location.href = url;
        return false;
    });
}